/* 浮动操作按钮样式 */

.floating-action-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}

/* 主按钮样式 */
.main-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1002;
}

.main-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.main-button.expanded {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transform: rotate(180deg);
}

.main-button-icon {
  font-size: 20px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* 子按钮容器 */
.sub-buttons {
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1003;
}

.sub-buttons.expanded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 子按钮样式 */
.sub-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 120px;
  justify-content: flex-start;
  transform: translateX(-20px);
  opacity: 0;
  position: relative;
  z-index: 1004;
  pointer-events: auto;
}

.sub-buttons.expanded .sub-button {
  transform: translateX(0);
  opacity: 1;
}

/* 子按钮动画延迟 */
.sub-buttons.expanded .sub-button:nth-child(1) {
  transition-delay: 0.1s;
}

.sub-buttons.expanded .sub-button:nth-child(2) {
  transition-delay: 0.15s;
}

.sub-buttons.expanded .sub-button:nth-child(3) {
  transition-delay: 0.2s;
}

.sub-button:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateX(-4px);
}

.sub-button-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-button-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* 不同类型子按钮的特殊样式 */
.sub-button.contact:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.sub-button.contact:hover .sub-button-text {
  color: #10b981;
}

.sub-button.disclaimer:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.sub-button.disclaimer:hover .sub-button-text {
  color: #f59e0b;
}

.sub-button.about:hover {
  border-color: #8b5cf6;
  background: #faf5ff;
}

.sub-button.about:hover .sub-button-text {
  color: #8b5cf6;
}

/* 遮罩层 */
.floating-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .floating-action-container {
    bottom: 20px;
    left: 20px;
  }
  
  .main-button {
    width: 48px;
    height: 48px;
  }
  
  .main-button-icon {
    font-size: 18px;
  }
  
  .sub-button {
    padding: 10px 14px;
    min-width: 100px;
  }
  
  .sub-button-text {
    font-size: 13px;
  }
  
  .sub-button-icon {
    font-size: 14px;
    width: 18px;
    height: 18px;
  }
}